package Practice.Practice_01;

public class demo05 {
    public static void main(String[] args) {
        {
            int x = 0;
            int y = 0;
            int z = 0;
            boolean a,b;
            a = x > 0 & y++ > 1;
            System.out.println("a = " + a);
            System.out.println("y = " + y);
            b = x > 0 && z++ > 1;
            System.out.println("b = " + b);
            System.out.println("z = " + z);
        }
        {
            int x = 0;
            int y = 0;
            int z = 0;
            boolean a,b;
            a = x == 0 | y++ > 0;
            System.out.println("a = " + a);
            System.out.println("y = " + y);
            b = x == 0 || z++ > 0;
            System.out.println("b = " + b);
            System.out.println("z = " + z);
        }
    }
}
